﻿using LogionDemo.Models.Enums;

namespace LogionDemo.Models
{
	public class UserInfo : ICloneable
	{
		public string? Password { get; set; }
		public string? PasswordSalt { get; set; }
		public DateTime RegistrationDate { get; set; }
		public UserRole SelectedUserRole { get; set; }
		public int UserInfoId { get; set; }
		public string? UserName { get; set; }
		public UserRole UserRole { get; set; }

		public object Clone()
		{
			return new UserInfo
			{
				UserInfoId = this.UserInfoId,
				UserName = this.UserName,
				Password = this.Password,
				PasswordSalt = this.PasswordSalt,
				UserRole = this.UserRole,
				RegistrationDate = this.RegistrationDate
			};
		}
	}
}